using System;
using System.ComponentModel;
using System.Data;
using System.Runtime.Serialization;
namespace DataAccess
{
    /// <summary>
    /// A custom serializable dataset containing SIG_ACCION information.
    /// </summary>
    [Serializable]
    [DesignerCategory("code")]
    public class SigEntidadesProgramasData : DataTable
    {
        ///
        /// Constants for table and fields mapping
        ///
        public const String SIG_ENTIDADES_PROGRAMAS_TABLE = "SIG_ENTIDADES_PROGRAMAS";
        public const String SEP_ID_FIELD = "SEP_ID";
        public const String SPZ_ID_FIELD = "SPZ_ID";
        public const String ENT_ID_FIELD = "ENT_ID";
        public const String ENT_RAZON_SOCIAL_FIELD = "ENT_RAZON_SOCIAL";
        public const String ENT_NOMBRE_REPRESENTANTE_FIELD = "ENT_NOMBRE_REPRESENTANTE";
        public const String ENT_DIRECION_FIELD = "ENT_DIRECION";
        public const String ENT_TELEFONO_FIELD = "ENT_TELEFONO";
        public const String ENT_TIPO_FIELD = "ENT_TIPO";
        public SigEntidadesProgramasData()
		{
			BuildDataTables();
		}
        protected SigEntidadesProgramasData(SerializationInfo info, StreamingContext context)
		{
			//
		}
        /// <summary>
		/// 
		/// </summary>
		private void BuildDataTables()
		{
            Columns.Add(SEP_ID_FIELD, typeof(Decimal));
            Columns.Add(SPZ_ID_FIELD, typeof(Decimal));
            Columns.Add(ENT_ID_FIELD, typeof(Decimal));
            Columns.Add(ENT_RAZON_SOCIAL_FIELD, typeof(String));
            Columns.Add(ENT_NOMBRE_REPRESENTANTE_FIELD, typeof(String));
            Columns.Add(ENT_DIRECION_FIELD, typeof(String));
            Columns.Add(ENT_TELEFONO_FIELD, typeof(String));
            Columns.Add(ENT_TIPO_FIELD, typeof(String));
            TableName = SIG_ENTIDADES_PROGRAMAS_TABLE;
		}
        /// <summary>
        /// 
        /// </summary>
        /// <param name="row"></param>
        public void Add(DataRow row)
        {
            Rows.Add(row);
        }
    }
}
